package com.sky.service;/*
 * ClassName: DishService
 * Package : com.sky.service
 * Description:
 * @Author zKer
 * @Create 2024/4/13 21:07
 */

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    /**
     * @param dishDTO:
      * @return Result
     * @description 新增菜品和对应口味
     */

    void saveWithFlavor(DishDTO dishDTO);

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void delete(List<Long> ids);

    DishVO getByIdWithFlavor(Long id);



    Result updateWithFlavor(DishDTO dishDTO);

    List<Dish> getListByid(Long id);

    List<DishVO> listWithFlavor(Dish dish);

    void startOrStop(Integer status, Long id);
}
